﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraReports.UI;
using WmsApp.WmsService;

namespace WmsApp.Report
{
    public class ReportPayApplyBill : IReport
    {
        const string ReportID = "付款申请单";

        public void ShowReport(string key)
        {
            var list = new List<WmsService.ReportParameter>();
            var p = new ReportParameter { Condition = String.Format(" and PayApplyBillID ='{0}'", key), DbTableName = "PayApplyBill" };
            list.Add(p);
            p = new ReportParameter { Condition = String.Format(" and PayApplyBillID ='{0}'", key), DbTableName = "PayApplyBillDtl" };
            list.Add(p);
            ReportFactory.ShowReport(ReportID, list);
        }

    }
}
